package com.hxzy.controller.vue.product.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @Author wy
 * @Description 库存修改
 * @Date 2023/9/19 9:02
 * @Version 1.0
 */
@Getter
@Setter
@ToString
@ApiModel(value = "商品库存改变")
public class StockChangeReq {
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "主键不能为空")
    private Long id;


    /**
     * 商品库存（-1不限量）
     */
    @ApiModelProperty(value = "商品库存")
    @NotNull(message = "商品库存不能为空")
    private Integer num;
}
